<?php
	$to = "contabilitate@aritax.ro";
	$subject = "Aritax.ro - cerere tarife contabilitate";
	$contact 		= $_REQUEST["Contact"];
	$cui 			= $_REQUEST["CUI"];
	$businessValue 	= $_REQUEST["BusinessValue"];
	$paperNumber 	= $_REQUEST["PaperNumber"];
	$employeeNumber = $_REQUEST["EmployeeNumber"];
	$workingDomain	= $_REQUEST["WorkingDomain"];
	$services		= $_REQUEST["Services"];
			
	$headers  = 'MIME-Version: 1.0' . "\r\n";
	$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
	$headers .= "From: contabilitate@aritax.ro \r\nReply-To: contabilitate@aritax.ro";

	$body = "Date de contact (nume, mail, telefon): ".$contact.
	"<br />CUI: ".$cui.
	"<br />Cifra de afaceri pentru anul anterior: ".$businessValue.
	"<br />Volum de acte lunar: ".$paperNumber.
	"<br />Numarul de salariati: ".$employeeNumber.
	"<br />Domeniu de activitate: ".$workingDomain.	
	"<br />Servicii dorite: ".$services;	
	
	try
	{
		if (strlen($contact) > 0)
			mail($to, $subject, $body, $headers);
	}
	catch (Exception $exception)
	{
		
	}
	
	header("Location: preturi.php");
?>